﻿using IM.Easy.Core.OAuth.OAuthUser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Core.OAuth
{
    public interface IOAuthProvider
    {
        Task<OAuthTokenResponse> GetAccessTokenAsync(string code, string redirectUri);
        Task<UserInfo> GetUserInfoAsync(string accessToken);

        string GetAuthorizationUrl(string redirectUri);
    }
}
